package main

import "unsafe"

func main() {
	const q int = 1
	const a, b, c = 1, false, "str"
	println(q)
	println(a, b, c)

	const (
		e = 1
		f = "ss"
		g = false
	)
	println(e, f, g)

	const (
		h = "abc"
		i = len(h)
		j = unsafe.Sizeof(h)
	)
	println(h, i, j)

	//iota
	iotaDemo()

}
func iotaDemo() {
	const ( //iota
		a = iota //0		 0
		b        //1		 1
		c        //2		 2
		d = "ha" //ha     3
		e        //ha     4
		f = 100  //100    5
		g        //100    6
		h = iota //7		 7
		i        //8		 8

	)
	println(a, b, c, d, e, f, g, h, i)

	const (
		o = 1 << iota //1<<0
		p = 3 << iota //3<<1
		q             //3<<2
		r             //3<<3
	)
	println(o, p, q, r)
}
